package com.freedom.admin.infrastructure.persistence.pojo.form;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class UserPasswordForm {

    @NotBlank(message = "用户id不能为空")
    private Integer userId;

    @NotBlank(message = "新密码不能为空")
    @Min(value = 6, message = "密码不能小于六位数")
    private String newPassword;
}
